public class Foreach {
    public static void main (String [] args){
        int [] a = {1,2,3,6,5,8,4,5,6};
        for (int b:a){
            System.out.print(b+" ");
        }
    }
}
